#ifndef C_DESIGN_DATA_PROCESS_H
#define C_DESIGN_DATA_PROCESS_H

#include "data.h"

bool adminAccountExists(struct admin *head, char *account);
bool userNameExists(struct user *head, char *username);
bool flightNumberExists(struct flight *head, char *flightNumber);
bool orderFlightNumberExists(struct order *head, char *flightNumber);
bool orderUsernameExists(struct order *head, char *username);
bool orderSeatNumberExists(struct order *head, unsigned int seat);
void addToAdminHead(struct admin **head, struct admin *node);
void addToFlightHead(struct flight **head, struct flight *node);
void addToUserHead(struct user **head, struct user *node);
void addToOrderHead(struct order **head, struct order *node);

void deleteFlightByNumber(struct flight **head, char *flightNumber);
void deleteOrderByNumber(struct order **head, char *flightNumber);
void deleteUserByUsername(struct user **head, char *username);
bool deleteOrderByNumber1(struct order** orderHead, struct flight** flightHead, char* number);
#endif //C_DESIGN_DATA_PROCESS_H
